package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BillsMapper;
import com.ruoyi.system.domain.Bills;
import com.ruoyi.system.service.IBillsService;

/**
 * 账单Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-17
 */
@Service
public class BillsServiceImpl implements IBillsService 
{
    @Autowired
    private BillsMapper billsMapper;

    /**
     * 查询账单
     * 
     * @param billId 账单主键
     * @return 账单
     */
    @Override
    public Bills selectBillsByBillId(Long billId)
    {
        return billsMapper.selectBillsByBillId(billId);
    }

    /**
     * 查询账单列表
     * 
     * @param bills 账单
     * @return 账单
     */
    @Override
    public List<Bills> selectBillsList(Bills bills)
    {
        return billsMapper.selectBillsList(bills);
    }

    /**
     * 新增账单
     * 
     * @param bills 账单
     * @return 结果
     */
    @Override
    public int insertBills(Bills bills)
    {
        return billsMapper.insertBills(bills);
    }

    /**
     * 修改账单
     * 
     * @param bills 账单
     * @return 结果
     */
    @Override
    public int updateBills(Bills bills)
    {
        return billsMapper.updateBills(bills);
    }

    /**
     * 批量删除账单
     * 
     * @param billIds 需要删除的账单主键
     * @return 结果
     */
    @Override
    public int deleteBillsByBillIds(Long[] billIds)
    {
        return billsMapper.deleteBillsByBillIds(billIds);
    }

    /**
     * 删除账单信息
     * 
     * @param billId 账单主键
     * @return 结果
     */
    @Override
    public int deleteBillsByBillId(Long billId)
    {
        return billsMapper.deleteBillsByBillId(billId);
    }
}
